package com.dys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @className: com.dys.controller.MyController
 * @description: com.dys.controller
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/10/24 23:28
 */
@Controller
public class MyController {

    @RequestMapping(value = {"success.do", "/ss.do"})
    public String getSuccess() {
        System.out.println("成功进入到Controller方法中.....");
        return "success.jsp";
    }

    @RequestMapping(value = {"s1.do", "/s2.do"}, method = {RequestMethod.GET, RequestMethod.POST})
    public String test1() {
        System.out.println("同时支持GET和POST请求.....");
        return "success.jsp";
    }
}
